added collision of rectangles and preliminary circle movement