implemented directional light, found bugs