3D pacman game in WebGL using Three.js