Those are some very good advices and I will apply them to my project.
But I obviously didn't explain my problem well.
The thing is, when the Menu shows up, user can pick to play with max. of 5 or 10 carrots. If he pick 5 carrots, then variable maxCarrots should be set to 5 and etc, but it isn't set.
Thank you for your effort. It means a lot to the beginner.