how to get difficulty in main