prevent user from exiting level