Classic Pacman game in Java