CE-120 #close fixed
cleaned up the messy mobspawning code
but still not all features are implemented