Refactored minimax goes one level deep
The algorithm will work for when there are two spaces remaining