public char checkGuessAI(Guess g) {
		int x = g.get_X();
		int y = g.get_Y();
		int l = this.ships.size();
		boolean hit = false;
		boolean sunk = true;
		char charac = 'm';
		int i = 0;

		while(!hit && i<l){
			hit = this.ships.get(i).testHit(x, y);
			if(hit && (this.returnCharacter(y, x) != Grid.HIT)) { 
				this.board[y][x] = Grid.HIT;
				System.out.println("Computer has hit a Ship!");
				charac = 'h';
				if(this.ships.get(i).isSunk()) {
					System.out.println("Computer has sunk one of your ships!");
					charac = 's';
				}
			}
			else {
				this.board[y][x] = Grid.HIT_MISSED;
			}

			i++;
		}
		if(this.returnCharacter(y, x) == Grid.HIT_MISSED){ 
			System.out.println("Computer has missed!");
			charac = 'm';
		}

		for(int j = 0;j<l;j++) {
			if(!this.ships.get(j).isSunk())
				sunk = false;
		}
		if (sunk == true)
		{
			charac = 'w';
		}
		return charac;		
	}