now uses sf::Packet to serialize data