Added a method setColor to allow the user to change multiple rectangles colors using an array of indexes