wrong PlaceShip loop ending condition