Moved Attribute and Uniform variable to their own functions in singleprogram
SingleProgram is isolated from the gameviewcontroller