Simple Pacman2D Javascript implementation