Fixed a few bugs, added spawn timer