AI has function to get all possible moves given a board.