Added logic for building buildings so it interacts with money