added isLevelUnlocked method