base.h
bool buttonControl() {
	if ( isPressed( buttonUp ) ) {
		writeSerial( "Up button pressed - Moving tiles up..." );
		return moveUp();
	} else if ( isPressed( buttonLeft ) ) {
		writeSerial( "Left button pressed - Moving tiles left..." );
		return moveLeft();
	} else if ( isPressed( buttonDown ) ) {
		writeSerial( "Down button pressed - Moving tiles down..." );
		return moveDown();
	} else if ( isPressed( buttonRight ) ) {
		writeSerial( "Right button pressed - Moving tiles right..." );
		return moveRight();
	}
	return false;
}
// read button inputs and take corresponding actions
// 1 if action taken (board changed), 0 if nothing done
read button inputs and take corresponding actions
1 if action taken (board changed), 0 if nothing done
read button inputs and take corresponding actions 1 if action taken ( board changed ) 0 if nothing done
bool buttonControl() {
	if ( isPressed( buttonUp ) ) {
		writeSerial( "Up button pressed - Moving tiles up..." );
		return moveUp();
	} else if ( isPressed( buttonLeft ) ) {
		writeSerial( "Left button pressed - Moving tiles left..." );
		return moveLeft();
	} else if ( isPressed( buttonDown ) ) {
		writeSerial( "Down button pressed - Moving tiles down..." );
		return moveDown();
	} else if ( isPressed( buttonRight ) ) {
		writeSerial( "Right button pressed - Moving tiles right..." );
		return moveRight();
	}
	return false;
}
bool buttonControl ( ) { if ( isPressed ( buttonUp ) ) { writeSerial ( " " ) ; return moveUp ( ) ; } else if ( isPressed ( buttonLeft ) ) { writeSerial ( " " ) ; return moveLeft ( ) ; } else if ( isPressed ( buttonDown ) ) { writeSerial ( " " ) ; return moveDown ( ) ; } else if ( isPressed ( buttonRight ) ) { writeSerial ( " " ) ; return moveRight ( ) ; } return false ; }
read button inputs and take corresponding actions
1 if action taken (board changed), 0 if nothing done
read button inputs and take corresponding actions 1 if action taken ( board changed ) 0 if nothing done