creepFactory calculates build cost and does not try to build creeps when the spawn does not have enough energy