Need help in my RFID locker project

the code im using now is for 1 locker ONLY...I need help on how to add RFID card in second ~++ locker
EACH RFID CARD FOR EACH LOCKER. different RFID card..different locker
for example..if i want to add RFID card in locker 3 ..i had to press 3 on keypad and set the card ..etc

for reference ..im using code from AccessControl from RFID library

while (!successRead); //the program will not go further while you are not getting a successful read
if (programMode1) {
if ( isMaster(readCard) ) { //When in program mode check First If master card scanned again to exit program mode
lcd.clear();
lcd.println("Exiting Program");
lcd.setCursor(0, 1);
lcd.println("----------------");
buzzerBETUL();
programMode1 = false;
printNormalModeMessage();
return;
}
else {
if ( findID(readCard) ) { // If scanned card is known delete it
deleteID(readCard);
lcd.clear();
lcd.print(" Tag Removed! ");
lcd.setCursor(0, 1); lcd.print("----------------");
digitalWrite(buzzer, HIGH); delay(1000); digitalWrite(buzzer, LOW); delay(1000);
digitalWrite(buzzer, HIGH); delay(500); digitalWrite(buzzer, LOW);
delay(1000);
lcd.clear();
lcd.print("Program mode:");
lcd.setCursor(0, 1); lcd.print("Add/Remove Tag");
}
else {
writeID(readCard);// If scanned card is not known add it
lcd.clear();
lcd.print(" Tag Added! ");
lcd.setCursor(0, 1); lcd.print("----------------");
buzzerBETUL(); delay(1000);
lcd.clear();
lcd.print("Program mode:");
lcd.setCursor(0, 1); lcd.print("Add/Remove Tag");
}
}
}
else {
if ( isMaster(readCard)) { // If scanned card's ID matches Master Card's ID - enter program mode
buzzerBETUL();
lcd.clear(); lcd.print("Program mode:");
lcd.setCursor(0, 1); lcd.print("Add/Remove Tag");delay(1000);
lcd.clear(); lcd.print("Program mode:");
lcd.setCursor(0, 1); lcd.print("Pilih No LOKAR");
keypadd();
}
else {
if ( findID(readCard) ) { // If not, see if the card is in the EEPROM
granted1();
}
else { // If not, show that the ID was not valid
denied();
}
}
}
}

void keypadd()
{ while (1)
{ customKey = customKeypad.getKey();
Serial.println(customKey);
if (customKey == '1')
{ digitalWrite(buzzer, HIGH);
delay(100);
digitalWrite(buzzer, LOW);
programMode1 = true;
return;
}
else if (customKey == 'D')
{
lcd.clear();
lcd.println("Exiting Program");
lcd.setCursor(0, 1);
lcd.println("----------------");
buzzerBETUL();
// programMode1 = false;
printNormalModeMessage();
return;
}
}
}
///////////////////////////////////////// Access Granted ///////////////////////////////////
void granted1() {
lcd.clear();
lcd.setCursor(0, 0); lcd.print(" Locker1 ");
lcd.setCursor(0, 1); lcd.print(" Access Granted!");// Unlock door!
buzzerBETUL(); delay(1000);
digitalWrite(EMlocker1, LOW); // Unlock door
printNormalModeMessage(); delay(2000);
door1UNLOCKED = true;
return;
}

///////////////////////////////////////// Access Denied ///////////////////////////////////
void denied() {
lcd.clear();
lcd.setCursor(0, 0);
lcd.print(" Access Denied!");
buzzerWARNING();
printNormalModeMessage();
return;
}
///////////////////////////////////////// Remove ID from EEPROM ///////////////////////////////////
void deleteID( byte a[] ) {
if ( !findID( a ) ) { // Before we delete from the EEPROM, check to see if we have this card!
// failedWrite(); // If not
Serial.println(F("Failed! There is something wrong with ID or bad EEPROM"));
}
else {
uint8_t num = EEPROM.read(0); // Get the number of used spaces, position 0 stores the number of ID cards
uint8_t slot; // Figure out the slot number of the card
uint8_t start; // = ( num * 4 ) + 6; // Figure out where the next slot starts
uint8_t looping; // The number of times the loop repeats
uint8_t j;
uint8_t count = EEPROM.read(0); // Read the first Byte of EEPROM that stores number of cards
slot = findIDSLOT( a ); // Figure out the slot number of the card to delete
start = (slot * 4) + 2;
looping = ((num - slot) * 4);
num--; // Decrement the counter by one
EEPROM.write( 0, num ); // Write the new count to the counter
for ( j = 0; j < looping; j++ ) { // Loop the card shift times
EEPROM.write( start + j, EEPROM.read(start + 4 + j)); // Shift the array values to 4 places earlier in the EEPROM
}
for ( uint8_t k = 0; k < 4; k++ ) { // Shifting loop
EEPROM.write( start + j + k, 0);
}
//successDelete();
//Serial.println(F("Succesfully removed ID record from EEPROM"));
}
}

///////////////////////////////////////// Find ID From EEPROM ///////////////////////////////////
boolean findID( byte find[] ) {
uint8_t count = EEPROM.read(0); // Read the first Byte of EEPROM that
for ( uint8_t i = 1; i <= count; i++ ) { // Loop once for each EEPROM entry
readID(i); // Read an ID from EEPROM, it is stored in storedCard[4]
if ( checkTwo( find, storedCard ) ) { // Check to see if the storedCard read from EEPROM
return true;
break; // Stop looking we found it
}
else { // If not, return false
}
}
return false;
}
///////////////////////////////////////// Add ID to EEPROM ///////////////////////////////////
void writeID( byte a[] ) {
if ( !findID( a ) ) { // Before we write to the EEPROM, check to see if we have seen this card before!
uint8_t num = EEPROM.read(0); // Get the numer of used spaces, position 0 stores the number of ID cards
uint8_t start = ( num * 4 ) + 6; // Figure out where the next slot starts
num++; // Increment the counter by one
EEPROM.write( 0, num ); // Write the new count to the counter
for ( uint8_t j = 0; j < 4; j++ ) { // Loop 4 times
EEPROM.write( start + j, a[j] ); // Write the array values to EEPROM in the right position
}
}
}
///////////////////////////////////////// Get PICC's UID ///////////////////////////////////
uint8_t getID() {
// Getting ready for Reading PICCs
if ( ! mfrc522.PICC_IsNewCardPresent()) { //If a new PICC placed to RFID reader continue
return 0;
}
if ( ! mfrc522.PICC_ReadCardSerial()) { //Since a PICC placed get Serial and continue
return 0;
}
// There are Mifare PICCs which have 4 byte or 7 byte UID care if you use 7 byte PICC
// I think we should assume every PICC as they have 4 byte UID
// Until we support 7 byte PICCs
Serial.println(F("Scanned PICC's UID:"));
for ( uint8_t i = 0; i < 4; i++) { //
readCard = mfrc522.uid.uidByte_;//Serial.print(readCard*, HEX);
}
// Serial.println("");
mfrc522.PICC_HaltA(); // Stop reading
return 1;
}
//////////////////////////////////////// Read an ID from EEPROM //////////////////////////////
void readID( uint8_t number ) {
uint8_t start = (number * 4 ) + 2; // Figure out starting position
for ( uint8_t i = 0; i < 4; i++ ) { // Loop 4 times to get the 4 Bytes
storedCard = EEPROM.read(start + i); // Assign values read from EEPROM to array
}
}
///////////////////////////////////////// Find Slot ///////////////////////////////////
uint8_t findIDSLOT( byte find[] ) {
uint8_t count = EEPROM.read(0); // Read the first Byte of EEPROM that
for ( uint8_t i = 1; i <= count; i++ ) { // Loop once for each EEPROM entry
readID(i); // Read an ID from EEPROM, it is stored in storedCard[4]
if ( checkTwo( find, storedCard ) ) { // Check to see if the storedCard read from EEPROM
// is the same as the find[] ID card passed*

* return i; // The slot number of the card*
* break; // Stop looking we found it*
}
}
}
///////////////////////////////////////// Check Bytes ///////////////////////////////////
boolean checkTwo ( byte a[], byte b[] ) {
if ( a[0] != 0 ) // Make sure there is something in the array first
match = true; // Assume they match at first
for ( uint8_t k = 0; k < 4; k++ ) { // Loop 4 times
if ( a[k] != b[k] ) // IF a != b then set match = false, one fails, all fail
* match = false;
}
if ( match ) { // Check to see if if match is still true
return true; // Return true
}
else {
return false; // Return false
}
}
////////////////////// Check readCard IF is masterCard ///////////////////////////////////
// Check to see if the ID passed is the master programing card*

boolean isMaster( byte test[] ) {
if ( checkTwo( test, masterCard ) )
return true;
else
return false;
}
bool monitorWipeButton(uint32_t interval) {
uint32_t now = (uint32_t)millis();
while ((uint32_t)millis() - now < interval) {
// check on every half a second
if (((uint32_t)millis() % 500) == 0) {
* if (digitalRead(wipe) != LOW)
return false;
}
}
return true;
}*_

You need to post your code in the </> tags.
You should put debugging print statements in your code and try to explain exactly what is going wrong.

I have not tried to work through your code but at first glance this seems odd;
if ( findID(readCard) ) { // If scanned card is known delete it
deleteID(readCard);