adding null check to written word
changing from winnerId to winner player in match object