rearranged code, fleshed out Tile PNodes