Change enum-direction to uint8_t