added spawning capability to the gamecontroller