Separated out the setting of the view and projection matrices into a separate routine.

This was previously carried out by the rendering function with the view matrix being sent to
each individual cube render. This is unnecessary as the view and projection matrices are
properties of the scene rather than the cubes (individual scene elements). This way is much neater
and more elegant.