Update Input.cpp

I tried updating some of the files to validate user's input and avoid crashing if a non-digit character were input by the user but the github account keeps telling me I have no write-access, so I'm proposing you gimme one.