tested and fixed. passed rudimentary tests of interpolation and get_color