Added textures to the blocks and changed logic slightly.