Engineering the Perfect Gingerbread House