remove director main loop dependency and use the CCNode update method instead