buildings can be removed from the grid, fix global variables