tile factory added. makes function to tiles instead of have none unique code on every tile. light code better and blink error gone