Fix dealCards function, remove defunct code
Clean up files
Replace client socket.io event logic