1. Fixed a bug that could cause the player to get stuck 2. Optimized the logic of some monster spawning to save resources