fix a bug with winner not being assigned to undefined during game reset