why does this only print the last friend
for (int i = 0; i < MAX_FRIENDS; i++) {
            if (user->friends[i] != NULL) {  // Only print this pointer's corresponding friend if the pointer is not null
                printf("%s\n", user->friends[i]->name);
            }
        }