game crashes if many units are added.