created minimax test
implemented minimax