public void onMouseClick(MouseEvent event) {
		int x = 0, y = 0;  //after methods will be a value inside the grid
		

		//This is a check of the cordinates to make sure they are in the grid. 
		if (!(event.getX() > (squareSize*s+BUFFER) ||
				event.getY() > squareSize*s+BUFFER ||
				event.getX() < BUFFER || event.getY() < BUFFER)){
			//if it is then the x and y values get set
			lastX = x = getCol(event.getX());
			lastY = y = getRow(event.getY());
		}


		/*if the current action mode is seismic,
		alternate the sMode in between start and end */
		if (request.buttonGroup.getSelection().getActionCommand().equals("S"))
			sMode = (sMode == 1) ? 0 : 1; //this is used to determine what click it is

		//update the cell info box for the current selection
		setCellInfo(lastX, lastY);

		//repaint the map to display new selection
		repaint(); //calls paintComponent();

		//this is what happens when the right
		if ( event.isMetaDown()){                  	 
		}                 	 
	}