public void makeMove() throws IOException {
        while(!game.gameOverByDraw()) {

            out.print("Enter a number between 1-9: ");
            int place = Integer.parseInt(reader.readLine());

            if (board.isAlreadyOccupied(place)) {
                out.println("Location already taken\n");

            }
            if (player1Turn) {
                board.placePlayerPiece(place, "X");
                if(game.gameOverByWinner("X")){
                    break;
                }
                player1Turn = false;
            } else {
                board.placePlayerPiece(place, "O");
                if(game.gameOverByWinner("O")){
                    break;
                }
                player1Turn = true;
            }

        }

    }