While loop in command line runner, refactor command line game