void grid() {
        double lineX;
        double lineY=-51;

        
        glLoadIdentity();
	glTranslatef(0, 0, -10.0f );
	glColor3f( 1.0, 0.0, 0.0 );
        glBegin(GL_LINES);
                
        for(lineX=-51; lineX<=50; lineX=lineX+2) {        
        	glVertex3f(lineX, lineY, .0001); // origin of the line
		//lineY=liney+30;
        	glVertex3f(lineX, lineY+100, .0001); // ending point of the line
		
	}
	
	lineX=-51;
        for(lineY=-51; lineY<=50; lineY=lineY+2) {
                glVertex3f(lineX, lineY, .0001); // origin of the line
                //lineY=liney+30;
                glVertex3f(lineX+100, lineY, .0001); // ending point of the line
         
        }
                                
                                
        glEnd( );

}
