def getMoveFromCLI(self, board):
    selection = (- 1)
    while ((selection < 0) or (selection >= len(board.legal_moves))):
        try:
            selection = int(input('Select a move '))
        except ValueError:
            print('Invalid input')
    for (index, move) in enumerate(board.legal_moves):
        if (index == selection):
            return move
def getMoveFromCLI(self, board):
    selection = (- 1)
    while ((selection < 0) or (selection >= len(board.legal_moves))):
        try:
            selection = int(input('Select a move '))
        except ValueError:
            print('Invalid input')
    for (index, move) in enumerate(board.legal_moves):
        if (index == selection):
            return move