Game Pacman in Java