Saving or loading games and keyboard input with C++