added spawn feature to tribes, and fixed a few bugs