This is a base upon which one or more mazes may be built. I have supplied the mechanics of moving and testing for success or failure. You make the maze. The object is to get the beetle to the apple. Once the game begins, the beetle will be stationary until the mouse pointer first touches him. After that, the beetle will follow the mouse pointer.
I used some of the logic from my "Concentric" project to keep the beetle from jittering around the mouse pointer.