diff --git a/src/battleship/model/Game.java b/src/battleship/model/Game.java index 0690e78..80f1f95 100644 --- a/src/battleship/model/Game.java +++ b/src/battleship/model/Game.java @@ -56,7 +56,7 @@ public class Game { return players[1]; remainingShip = players[1].getShips().parallelStream().filter(ship -> !ship.isDrown()).findFirst().orElse(null); if(remainingShip == null) - return players[1]; + return players[0]; return null; }