Fixes of winning condition and sockets disconnections.

Fixed game winning condition. Socket disconnection issues.