Added onCollision method for ship