Adding gates to the map