Putting it in the text field would display the the price but would not do anything to keeping track of how much is spent. You're best bet is to make a struct for the furniture and having an int to keep track of the price and have it added in the function that creates the furniture and places it in the level.