Added sendPacket() method to the NetworkManager