Pacman game, starting with code from http://zetcode.com/tutorials/javagamestutorial/pacman/, and improving