first loadMap and check collisions