Creating Pacman with HTML5 Canvas API