Fixed 'cin' not flushing when input variable was integer instead of string and problem with pushing non-integral data type onto stack