added rules, control spawning