fixed and used the improved score method in minmax