public void ScheduleNewZombieTask(IGameBoard board) { zombieNum++; var localZombie = zombieNum; broadcastService.Broadcast(board, $"Night walker ({localZombie}) will spawn in 10 seconds"); Thread.Sleep(5000); broadcastService.Broadcast(board, $"Night walker ({localZombie}) will spawn in 5 seconds"); Thread.Sleep(3000); broadcastService.Broadcast(board, $"Night walker ({localZombie}) will spawn in 3 seconds"); Thread.Sleep(1000); broadcastService.Broadcast(board, $"Night walker ({localZombie}) will spawn in 2 seconds"); Thread.Sleep(1000); broadcastService.Broadcast(board, $"Night walker ({localZombie}) will spawn in 1 seconds"); Thread.Sleep(1000); board.AddGameObject(new Zombie($"Night-walker ({localZombie})", 0.Random(10), 0)); }