updated testcases and working minimax and expectimax