 		break;
 		case selectWifi:
 		if(digitalRead(7) == HIGH){
-			//Serial.println(cursorPos);
 			if(cursorPos < foundNetworks-1){
 				cursorPos++;
 			}

unsigned long functionStartTime; //used to store the time a function started
const unsigned long timeout = 8000; //the timeout/maximum time in milliseconds


void setup() {
	delay(5000);
	Serial.begin(9600);

	if (runningFunctionNow == 1 && wifiNumber < 16) {
		if (esp8266Module.available() > 0) {
			character = esp8266Module.read();
			if(!foundWifi){
				//Serial.write(temp);
				if (character == ':') {
