fix the misuse of Thread.sleep

fix misuse of Thread.sleep and  the animation of ending is now triggered
by mouse click
Merge branch 'master' of https://github.com/bruce30262/LittleTyper