Moved tick loop in ConnectedClient to own file