fix progressbar and implement game mode