updated main.cpp, added inputcheck.h, added inputcheck.cpp