does not work correctly bouncing of rectangle