5 buttons on one pin.

A schematic drawing of what you built would go a long way in trying to help you. Even if it's just hand drawn and a picture taken and posted would be better then just words. A schematic is the universal language of circuitry.

In your code, while it may possibly compile without errors ( I didn't try it) your use of many of your { and } are not proper at all.

Lefty