Made the basic skeleton of the minimax algorithm