Well done. I think it's deterministic, i.e. playing the same board + same moves again spawns same enemies.