Sample Code to demonstrate cocos2d behaviours