implementation of asteroids game