Watch it. If it gets stuck in a loop then just restart. This is my first project so it isn't very good. Please be kind in the comments! :)
Got the idea from the original Pacman game