rectangles' positions are now proper

-getAlignedPos method overloaded for calculating correct positions of
the rectangles
-UI is back to look like earlier one