Added building cost and basic logic