socket code demonstrated using pygame