Work Done on the minimax function