Replaced arc4 randomness with srand/rand, wrote ASSERT_GL macro, and wrapped EVERY OpenGL call in ASSERT_GL.