fixed restart waste bug and added score updating