fixed texture code; started work on tiling system