loop only runs once

Yes, I'm not sure to understand your problem but try with int tile [16]; :slight_smile: