Server handles all incoming packets at once

Server now loops through all incoming packets and updates the clients at
once instead of reading one packet every loop.