fixed positions bugs for rectangles
correct model for arranging pieces
fixed small bug with animation