Python typing game in terminal