factored out addRectangle/addStar and added a button to add rectangles (currently broken)