Server Ticks

Added tick loop to server