Added user_difficulty as a parameter for window generating algorithm