Snake Game - added RequireJS, but snake movement stopped working