Fixed wrong winner on resign, crashes on opponent's disconnect