PacMan project in Java