game works in terminal, but _while_ loops are sketchy.