Simple Pacman-like game in Java