Added sockets to communicate with the server. Added player