Refactored spawn controller, using a class for spawn data now