replaced 25 pixel moves with variable