Copied over rotation and collision detection from asteroids project