     // Initialize WiServer and have it use the sendMyPage function to serve pages
     pinMode(ledPin1, OUTPUT);
     pinMode(ledPin2, OUTPUT);
-    pinMode(ledPin3, OUTPUT);
   
     //WiFi.init();
     WiServer.init(sendPage);
     WiServer.enableVerboseMode(true);
     states[0] = false;
     states[1] = false;
-    states[2] = false;
     Serial.println("Started webserver ...");
 }
 
 void printStates()
 {
-        for (stateCounter = 0 ; stateCounter < 3; stateCounter++)
+        for (stateCounter = 0 ; stateCounter < 2; stateCounter++)
         {
             boolToString(states[stateCounter], stateBuff);
            


int RECV_PIN = 4;
int BUTTON_PIN = 5;
int STATUS_PIN = 13;

IRrecv irrecv(RECV_PIN);
IRsend irsend;

        WiServer.print("</html> ");
        return true;
   }
   else {
     WiServer.print(" ");
     return true;
   }
}

// Storage for the recorded code
int codeType = -1; // The type of code
