static Obstacle getByValue(int value) { return Obstacle.values.firstWhere((x) => x.rawValue == value); }