Added handler for Player and Chat requests
Added encoding function for players