Implements checking for game being won