Updating the color on y position as well