Rectangle moves on click event