Added color to the position funtion