The "host" player is now always player 1.
Added checks for the existance of partner socket.
Fixed a typo in variable names.