bug #2484 _totalQuags

http://www.cocos2d-x.org/issues/2484

(also cleaned up mainscene code)