Simple pacman game written in Java