Pacman game for WebGL using three.js