Added method to create CCMenuItemTogglewith CCArray