public static final Position getByValue(int v) {
        switch (v) {
        case 0:
            return NORTH;
        case 1:
            return SOUTH;
        case 2:
            return EAST;
        case 3:
            return WEST;
        case 4:
            return CENTER;
        default:
            throw new IllegalArgumentException("No position with value " + v
                    + "exists.");
        }
    }