Started cleaning up rendering code

stuff looks a bit nicer now (2 cubes aren't rendering for some reason)