added missedCount check in the animationGameLoop in game.js