private boolean checkRows(Player player) {
        boolean isWinner = false;
        if ((board[0][0].equals(player.getMark()) &&
                board[1][0].equals(player.getMark()) &&
                board[2][0].equals(player.getMark()))) {
            winnerCombination[0] = "0 0";
            winnerCombination[1] = "1 0";
            winnerCombination[2] = "2 0";
            isWinner = true;
        } else if ((board[0][1].equals(player.getMark()) &&
                board[1][1].equals(player.getMark()) &&
                board[2][1].equals(player.getMark()))) {
            winnerCombination[0] = "0 1";
            winnerCombination[1] = "1 1";
            winnerCombination[2] = "2 1";
            isWinner = true;
        } else if ((board[0][2].equals(player.getMark()) &&
                board[1][2].equals(player.getMark()) &&
                board[2][2].equals(player.getMark()))) {
            winnerCombination[0] = "0 2";
            winnerCombination[1] = "1 2";
            winnerCombination[2] = "2 2";
            isWinner = true;
        }
        return isWinner;
    }