implement ambient color and an option for normal rendering
remove redundant lines of code with a for loop