Put all the { on lines by themselves. Use Tools + Auto Format to fix your crappy indenting.
There is no excuse for stuff like this:
pressTime1
= millis()- startTime1;
Pay some attention to what you are doing. Consistent use of spaces helps immensely. All of a statement goes on one line, if at all possible. (Yes, I have some code that calls a function with a bunch or arguments, and compares the response to that of another function call that takes a bunch of arguments, and the statement is spread over 20 lines, but that is NOT the case here.)
if(firsttime == true){
firsttime is not a boolean. The value in it should not be compared to true.
firsttime=0;
firsttime = true;
See my earlier note about paying attention and consistency. If you are going to use true and false, use the right kind of variable and use true and false consistently.
/*
while(digitalRead(button) == LOW){}
while(digitalRead(button) == HIGH){
delay(2000);
if(digitalRead(button) == HIGH){
Do something
}}*/
Does this have anything to do with your problem? Of course not. It's commented out. We do NOT need to see this. Delete it!
I'm being a bit harsh, I know, but I can't read your code well enough to see what the problem is, because of it's poor layout (and the fact that notepad++ sees the file as read-only and won't let me edit it to fix the indenting issues and split lines, and to remove commented out code).
I suspect that if the code was laid out logically, the variables types and values were consistent, and there was no useless "code", the problem would be quite obvious.
There is one thing, though, that strikes me as just plain wrong:
if (readCapacitivePin(capSensePin1) > touchedCutoff) {
// digitalWrite(LEDPin, HIGH);
delay(10);
if(digitalRead(capSensePin1) == LOW){
What, exactly, is connected to capSensePin1? Is it a capacitive sensor that needs readCapacitivePin() to read it? Or, is it a digital sensor that requires digitalRead() to read it? I can't imagine any kind of sensor that can be read either way.
If it IS a capacitive sensor, you really should be using the CapSense library:
http://playground.arduino.cc//Main/CapacitiveSensor?from=Main.CapSense