Moved declarations from client.cpp:main to client.h, added sendPacket function prototype