Fixed a bug of the flags not resetting, and the scores not resetting.