Take the state loops out of main.cpp. Create a new file for each state. This should make main.cpp easier to use.
Take the state loops out of main.cpp. Create a new file for each state. This should make main.cpp easier to use.