lots of modifications, ultimately this is the first working build
initialize with black instead of white
adds proper temperature decrement