Add collisions and layer dict.