Set up server game loop iterate function