public int getMove(Board board, boolean isO) throws IOException {
        Board.Type type = Board.Type.O;
        boolean error;
        if(!isO) {
            type = Board.Type.X;
            System.out.println("You move X...");
        } else {
            System.out.println("You move O...");
        }
        showBoard(board);
        int move = 0;
        do {
            error = false;
            System.out.print("Enter the number(1-9): ");
            DataInputStream in = new DataInputStream(System.in);
            move = Integer.parseInt(in.readLine()) - 1;
            try{
                board.set(move/3, move%3, type);
            }catch(IllegalAccessError err){
                error = true;
            }
        }while(error == true);
        showBoard(board);
        System.out.println("Wait another player's turn...");        
        return move;
    }