Created a class for input management, this moved a large portion out of main.cpp.