background color change based in 'position' variable