added expectimax and minimax functions