Help

So I'm trying to get this lockpad to work and the lights aren't lighting up. We are using the arduino Mega 2560 board.
Here is our code
#include <Keypad.h>

char* password = "123";
int position = 0;

const byte ROWS = 4;

const byte COLS = 3;

char keys[ROWS][COLS]
{
{'#','0','*'},
{'9','8','7'},
{'6','5','4'},
{'3','2','1'}
};
byte rowPins[ROWS] = {5,6,7,8};
byte colPins[COLS] = {2,3,4};
Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
int redLED = 12;
int greenLED = 13;

void setLocked(bool locked)
{
if (locked)
{
digitalWrite(redLED, HIGH);
digitalWrite(greenLED, LOW);

}
else
{
digitalWrite(redLED, LOW);
digitalWrite(greenLED, HIGH);

}
}
void setup(){
pinMode(redLED, OUTPUT);
pinMode(greenLED, OUTPUT);

setLocked(true);
}
void loop (){
char key = keypad.getKey();
if (key == '*'||key == '#')
position = 0;
setLocked(true);
if(key == password[position]){
position++; //check password go to next spot on list
}
if(position == 3){
setLocked(false);
}
delay(100);
}

I will try to get a picture of the wiring up later. What is wrong? What would you do?
Dogs on a plane

I'd add some serial prints to tell you what's going on.

I'd also add code tags when posting code.

I see this in your code

void loop ()
{
  char key = keypad.getKey();
  if (key == '*' || key == '#')
    position = 0;
  setLocked(true);

The code will call setLocked(true) every time through loop() no matter whether a key is pressed or not and whatever its value. Is that what you intend to happen ?

Do either of the LEDs light up when the posted code runs ?

UKHeliBob:
I see this in your code

void loop ()

{
  char key = keypad.getKey();
  if (key == '*' || key == '#')
    position = 0;
  setLocked(true);



The code will call setLocked(true) every time through loop() no matter whether a key is pressed or not and whatever its value. Is that what you intend to happen ?

Do either of the LEDs light up when the posted code runs ?

No neither of my LEDS light up. Thanks so much for trying to help me with this. You're a super cool dude, unlike @groundFungus

Does the Blink example work with the LEDs attached to the pins that you are using ?

UKHeliBob:
Does the Blink example work with the LEDs attached to the pins that you are using ?

Yes, they do work, that's why I'm confused

Whilst there is plenty wrong with your code at least one of the LEDs should be on

Try this loop() function instead of yours

void loop ()
{
  char key = keypad.getKey();
  if (key)
  {
    digitalWrite(redLED, LOW);
    digitalWrite(greenLED, HIGH);
  }
  else
  {
    digitalWrite(redLED, HIGH);
    digitalWrite(greenLED, LOW);
  }
  delay(500);
}

Do either of the LEDs light ?
What happens if you press and hold a key ?