Refactor pivotal tile code, handle extensibility