beginning of level state bounds implementation (switchState called on end reached)