added movement locking, spawning, other fixes