Added secret exit checking, updated selectLevel, minor bugfixes