moved sound and anim code to game.js