Added option to invert ball movement