Major error found and fixed 1 remains

flaw is something to do with the assigning a value for Material in the
main.cpp