public static void loop() {
		
		while (CSGame.state == States.ThreeDeeTest) {
			// Clear the screen of its filthy contents
            glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

            // Push the screen inwards at the amount of speed
            glTranslatef(0, 0, speed);

            // Begin drawing points
            glBegin(GL_POINTS);
            // Iterate of every point
            
            
            for (Point p : points) {
                // Draw the point at its coordinates
            	glColor3f(0.0f, 1f, 0f);
                glVertex3f(p.x, p.y, p.z);
                
            }
            // Stop drawing points
            glEnd();

            // If we're pressing the "up" key increase our speed
            if (Keyboard.isKeyDown(Keyboard.KEY_UP)) {
                speed += 0.01f;
            }
            // If we're pressing the "down" key decrease our speed
            if (Keyboard.isKeyDown(Keyboard.KEY_DOWN)) {
                speed -= 0.01f;
            }
            // Iterate over keyboard input events
            while (Keyboard.next()) {
                // If we're pressing the "space-bar" key reset our speed to zero
                if (Keyboard.isKeyDown(Keyboard.KEY_SPACE)) {
                    speed = 0f;
                }
                // If we're pressing the "c" key reset our speed to zero and reset our position
                if (Keyboard.isKeyDown(Keyboard.KEY_C)) {
                    speed = 0;
                    glLoadIdentity();
                }
            }
            
            
            if(Display.isCloseRequested()){
				CSGame.state = States.Closing;
				break;
			}

            Debug.debugLoop();
            // Update the display
            Display.update();
            // Wait until the frame-rate is 60fps
            Display.sync(60);
		}
	}