Added ability to add materials

Did necessary additions so we can have the ability to choose a material to add to tiles.