Working on tile map logic