using coincedence to move center of square to end of a line.

I can get one center to go to line, but cannot get it to move to other line end. What am I doing wrong. It moves vertically, but not horizontally.

Edu ​​​​​​​