server side game loop setup