Attempting to use minimax for ai, initial psudeo code