Added a Tile class, Using rAF polyfill