Too many if statements?? Please help

You should consider using an array or two to declare inputs, this code is very hard to follow.

Try something like this:

int outputPins[] = {2, 3, 4, 5, 6, 7, 8, 9, 10};
int inputPins[] = {14, 15, 16, 17, 18, 19};
int i = 0;

for(i = 0, i<=8, i++){
   pinMode(outputPins[i], OUTPUT);
}

for(i = 0, i<=5, i++){
  pinMode(inputPins[i], INPUT);
}

Simple things like that make your code a lot easier to read, and the sooner you get it clean and concise, the sooner you will be able to get it debugged properly. You don't need to be a professional computer programmer to write code that looks good.

You're jumping into a bunch of libraries that you probably do not know how to use properly, maybe start off with some basic C++ knowledge to build on.