added auto resizing
added loop to animate the cubes & commented on the strict mode thingy