Made it so all output using directions uses 0 to represent the same direction and 1 to represent opposite direction for consistency