Added spawns
fixed code