from enum import Enum class Direction(Enum): top = 1 right = 2 down = 3 left = 4