public char findWinner() {
        for (int rowOffset = 0; rowOffset < 9; rowOffset+= 3) {
            if (boardSpaces[0 + rowOffset] == boardSpaces[1 + rowOffset]) {
                if(boardSpaces[0 + rowOffset] == boardSpaces[2 + rowOffset]) {
                    return boardSpaces[0 + rowOffset];
                }
            }
        }
        for (int column = 0; column < 3; column ++) {
            if (boardSpaces[column] == boardSpaces[column + 3]) {
                if (boardSpaces[column] == boardSpaces[column + 6]) {
                    return boardSpaces[column];
                }
            }
        }
        if (boardSpaces[0] == boardSpaces[4]) {
            if (boardSpaces[0] == boardSpaces[8]) {
                return boardSpaces[0];
            }
        }
        return ' ';
    }