if (a-x <= 10) {x = -x} ;if (b-y <= 10) {y = -y} ;
if (a+x <= 10) {x = -x} ;if (b+y <= 10) {y = -y} ;