Implemented tile utilities and fixed tile creation bug.