You have way too much code for now. You are not enabling the internal pull-up resistors. This implies that you have an external resistor connected with the switch. Is this true? Exactly how is the switch connected?
You need to learn WHEN to use { and } and when not to. You have a bunch of useless { and }.
For a beginner, which you clearly are, it is a LOT easier to see blocks of code if you put each { and } on a line by themselves, and properly indent the code in between:
if(someCondition)
{
if(anotherCondition)
{
// indented code
}
}
is a lot easier to follow than
if(someCondition){
if(anotherCondition) {
// indented code
}}