Wrote server loop, time, and tick code