plan to refactor typing game
method for scan