press green flag to start, and press space key while your mouse is hovering over a white colored area to spawn ponies. You can drag and drop the apple
thanks to @griffpatch for EVERY BIT OF THIS CODE and the idea of an apple and for the layout of the maze. And thanks to me for the idea of a pony