Moved js files to only game.erb and fixed time bug