I got the menu fully working (it needs some balancing). And the values transfer from the menu into the main game. I also made it so that the player needs to have acquired buildings before being able to place them.
This means that it may appear that buildings are broken especially because I didn't bother adding any visible way to see the number of a building that a player posses because we were intending to change the way that
the building menu is displayed.