Introduced drawing loop

Changed the drawing logic to use a 60 FPS drawing loop, keeping track of all the rectangles in a list.