tilemap from scratch

hello i am new to cocos2d-x and having allot of trouble finding the info i need.
my game requires a very specific tilemap that i cant do in tiled and has the update and change allot.
the map works similar to tetris or bejeweled and i use a 2d array for it.