fix wraparound repositioning of ship