 uint8_t buttonState;
 
 int currentSteps;
+int currentJumps;
 int switchState;
+boolean justJumped;
 
 void setup() {
 	// Debugging output

}

void displayRung(){
	displayNumber(rung, 2, LCD_POSITION_RUNG, 0);
}

void displaySelectedSCR(int line){
	int steps = introLadder[rung];
	
	// Steps
	displayNumber(steps, 3, LCD_POSITION_SCR, line);
	lcd.setCursor(LCD_POSITION_SCR + 3, line);
	lcd.print(":");
	
	// Count
	displayNumber(steps / 75, 1, LCD_POSITION_SCR + 4, line);
	lcd.setCursor(LCD_POSITION_SCR + 5, line);
	lcd.print(":");
	
	// Remainder
	displayNumber(steps % 75, 2, LCD_POSITION_SCR + 6, line);
}

void displayCurrentSCR(int line){
	// Steps
	displayNumber(currentSteps, 3, LCD_POSITION_SCR, line);
	lcd.setCursor(LCD_POSITION_SCR + 3, line);
	lcd.print(":");
	
	// Count
	displayNumber(currentSteps / 75, 1, LCD_POSITION_SCR + 4, line);
	lcd.setCursor(LCD_POSITION_SCR + 5, line);
	lcd.print(":");
	
	// Remainder
	displayNumber(currentSteps % 75, 2, LCD_POSITION_SCR + 6, line);
}

void updateDisplay(){

			case STATE_SETUP:
				lcd.print("Select rung:");
				displayRung();
				displaySelectedSCR(LCD_LINE_ONE);
				break;
			case STATE_READY:
				lcd.print("S:C:R -");
				displaySelectedSCR(LCD_LINE_ZERO);
				lcd.setCursor(0, LCD_LINE_ONE);
				lcd.print("Step on to begin");
				break;
			case STATE_RUNNING:
				lcd.print("S:C:R -");
				displaySelectedSCR(LCD_LINE_ZERO);
				lcd.setCursor(0, LCD_LINE_ONE);
				lcd.print("Current:");
				displayCurrentSCR(LCD_LINE_ONE);
				break;
			case STATE_JUMPING:
				lcd.print("S:C:R -");
				displaySelectedSCR(LCD_LINE_ZERO);
				lcd.setCursor(0, LCD_LINE_ONE);
				lcd.print("JUMP!");
				displayJumps();
				break;
			case STATE_COMPLETE:
				lcd.print("DONE!");
				displaySelectedSCR(LCD_LINE_ZERO);
				lcd.setCursor(0, LCD_LINE_ONE);
				lcd.print("Current:");
				displayCurrentSCR(LCD_LINE_ONE);
				break;
			}
			
