simple pacman game for java class