tried bouncing against imaginary circle; reverted to using window, but additional code in the comments