fix bug and get button ready

fix bug before end game
get button ready to use count time