check that levelNum <= num levels in getLevel - should fix #148