Core/Packets: moved chat packet building function to packet builder class