added ship wrapping instead of resetting to middle