Added get collision grid to tilemap and change some functions that should be constant to be constant.