working easy and medium mode logic