public static FieldType convertToXMLFieldType(FieldState state) {
        switch (state) {
            case EMPTY:
                return FieldType.EMPTY;
            case WALL:
                return FieldType.WALL;
            case DIAMOND:
                return FieldType.DIAMOND;
            case PLAYER:
                return FieldType.PLAYER;
            case COMPLETED:
                return FieldType.COMPLETED;
            case GOAL:
                return FieldType.GOAL;
            case PLAYER_ON_GOAL:
                return FieldType.PLAYER_ON_GOAL;
            default:
                return FieldType.EMPTY;
        }
    }