Added collision detection for ships