making the tile creation better

also made the array 2d, and it will draw
made the imgs get by value