added difficultly logic version1.