Need help with an NES controller code

Sowden:
And heres the error it gave me.

NES_2_Controllers.cpp: In function 'void controllerRead()':
NES_2_Controllers:92: error: a function-definition is not allowed here before '{' token
NES_2_Controllers:249: error: expected `}' at end of input

The error is at the "{" below the "void loop" code line. Whats that about? Thanks again for your guys help. Later.

You left out a '}' at the end of the first FOR loop in controllerRead().