Cannot open a file from SD when using multiple loops [SOLVED]

Aren't keypad pins and lcd pins overlapping?