Trying to get minimax working.