All outgoing data (server to client) now uses the Packet object. Switched packetTypes to be sent using write(), not writeInt() (it confuses the Client in some cases when reading IDs otherwise).

Also eliminated a for loop by replacing it with a conditional