Fixing array issues in spawn.cs