static void checkGameOver() {
         for (Ship[] row : gridArray) {
             for (Ship ship : row) {
                 if (ship == null) continue;
                 
                 if (ship.isSunk()) return;
             } 
         }
         
         JOptionPane.showMessageDialog(null, "Game over!");
    }