refactor(game): some js tweaks