public void LocateSubmarinesOnBoard(Player player) { bool IsSuccess = true; string message = null; SetGame.SetUp(); for (int i = 0; i < player.Submarines.Length; i++) { do { if (!IsSuccess) { message = "Error Placing the submarine, try another points"; } Point[] points = SetGame.GetSubmarineEdgePoints(player.Submarines[i], player.MyBoard.Matrix, message); PlaceSubmarine placeTool = new PlaceSubmarine(ref player.Submarines[i], points[0], points[1], PlayerA.MyBoard); IsSuccess = placeTool.IsPlaced(); } while (!IsSuccess); } PrintObject.Board(PlayerA.MyBoard.Matrix); }