allow hero to move on opposite axis when confined on the other axis