I\'m making a 2d sandbox game. First, I create entire map and divide it into chunks(which are also divided into groups). Then I activate the chunks, that are in view of the