Array problem that I probably made harder than it actually is...