Extracted numLevelButtons constant to the class level.