Added for loop for drawing all objects.