reconfigured get_move to take a board object for minimax implementation