Trying to make a small game with cocos2d-JS