Improved error checking (replaced an unwrap with match). Added a "player joined" message for stdout.