Code restructuring and bug fixes

Finished code restructuring
Fixed various spawn editor bugs
Fixed players not spawning at the angle specified by the spawn point