simplify addSkyBox function

I simplified the addSkyBox function.

Maybe the code is a little more obtuse, but it is a lot less code.