revised asteroids game.js