Added elastic collisions for the ship and the edges of the screen