converted sf::Packet to std::shared_ptr<sf::Packet>. still needs some work