updated ContactHandler and TileLayer Object creation