Well, u can drag the apple to a different place, then hover your mouse to a random position (not the edge!) then press space, there will be a Scratch cat goes to the apple! But remember don't spam the space key because it will be super lag!
Griffpatch path finding tutorial:)