Remote control Relays one ok other freezes everything when clicked

Button 1 on remote works good , can turn on off endlessly as soon as I push button 2 relay goes on but cannot push button one or two. If I turn serial monitor on or shut it down it will reset relays and button 1 will work again but button 2 will freeze everything.

I am new to programming I just copied and pasted code from different codes, any help would be great.

#include <IRremote.h>

int RECV_PIN = 11; // the pin where you connect the output pin of TSOP4838
int Relay1 = 2;
int Relay2 = 3;
int itsONRelay = {0,0};
/* the initial state of LEDs is OFF (zero)
the first zero must remain zero but you can
change the others to 1’s if you want a certain
led to light when the board is powered */
#define code1 1151027808 // code received from button A
#define code2 568613118 // code received from button B

IRrecv ir_receiver(RECV_PIN);
decode_results results;

void setup()
{
Serial.begin(9600); // you can comment this line
ir_receiver.enableIRIn(); // Start the receiver
pinMode(Relay1, OUTPUT);
pinMode(Relay2, OUTPUT);
}

void loop() {
if (ir_receiver.decode(&results)) {
Serial.println(results.value, HEX);
Serial.println(’ ');
switch (results.value) {
case code1:
if(itsONRelay[1] == 1) { // if first led is on then
digitalWrite(Relay1, LOW); // turn it off when button is pressed
itsONRelay[1] = 0; // and set its state as off
} else { // else if first led is off
digitalWrite(Relay1, HIGH); // turn it on when the button is pressed
itsONRelay[1] = 1; // and set its state as on
}
break;
case code2:
if(itsONRelay[2] == 1) {
digitalWrite(Relay2, LOW);
itsONRelay[2] = 0;
} else {
digitalWrite(Relay2, HIGH);
itsONRelay[2] = 1;
}
break;
default:
Serial.println(“Waiting …”);
}
// Serial.println(value); // you can comment this line
// irrecv.resume(); // Receive the next value
ir_receiver.resume();
}

}

Noob point... if you want us to read your code....

//  use code tags!

thanks