Partially working solution to Flapjacks