Using Serial imput to run a code

Never mind, i fixed the problem by doing this in the in the area outside setup and loop before it runs:

void checkToggle();
void checkSerial();
void checkButton();
void mandmStart();
void mandmColor();
void color();
void recvWithEndMarker();
void recvWithStartEndMarkers();
void showNewData();
void parseData();
void showParsedData();