Problems with Storing Hex Codes

I think the buttons are okay for now, and the advice with the irrecv.resume(); did help, but the entire thing still gets stuck in the loop, and the hexCode1 value is 0. How would I fix those?