* @Post: no changes
	 * @Return: whether or not this point is under attack by an enemy king
	 */
	private boolean kingCanAttack(Point pointToCheck) {
		// TODO Auto-generated method stub
		King enemyKing;
		if(isWhitesTurn())
		{
			enemyKing=myBoard.getBlackKing();
		}else
		{
			enemyKing=myBoard.getWhiteKing();
		}
		int xDistance = Math.abs(pointToCheck.x-enemyKing.getX());
		int yDistance = Math.abs(pointToCheck.y-enemyKing.getY());

		if(xDistance<=1&&yDistance<=1)
		{
			return true;
		}
		return false;
	}