Air Hockey example in cocos2d x book converted to version 3.0rc2 using c++11