Update Client.cpp

Optimized code added Listen() to listen for commands from server.