Separated the rectangles logic in different classes.

Changed the game behavior to test new dynamics.