Finished minimax.py