You must get as many cubes as you can before the time runs out.
I did an online tutorial on how to make this.