public void MainClick(int button, int x, int y){
		if((x>(width/8*5) && y>height/4*3))
	     {
	         if(button==0){
	        	 System.exit(0);
	         }
	     }
	     
	     //
	     //starting the game
	     //This first section is for AI singleplayer.
	     if((x<(width/4)  && y>height/2))
	     {
	    	 if(button==0){
	        	IsThereAI = true;
	        	Screen=1;
	         }
	     }
	     else if((x<(width/2)  && y>height/2))
	     {
	    	 if(button==0){
		        	IsThereAI = false;
		        	Screen=1;
	         }
	     }
	    
	}