Fixed logic to correctly populate the table based on whether or not the buildings and upgrades are unlocked.