@staticmethod
def opposite(direction: int) ->int:
    """
        Returns the opposite direction
        :param direction: the specified direction
        :return: the opposite direction
        """
    return (direction + 2) % 4
