finished basic minimax AI