Rectangle class change

Rectangle class now spawn rectangles in their own matrix. Added
rotation ability.