Another basic PacMan written in JavaScript for fun