Work on new mobspawn code

Worked on new mobspawn code, still not done, and currently has errors.