Upgraded the Cocos2d-x framework to v2.1.4 and refactored the game code to reflect changes in the API