added render and game loops