Mallaca>Network: Refractored packets

Optimized the code for readability purposed

Signed-off-by: JordySipkema <jordysipkema@gmail.com>