editing input.cpp and input.h to read input through cin