Pacman written in Java