the cat follows the mouse pointer to try to get the ball but watch out for the doughnut which will end the game.
Thanks to the informative coding book.