Added Tick Events

Added a thread for handling server ticks