improvements on monstermovement and fixed a crash